package org.example.springcioud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsProject: Spring_Cloud
 * @BelongsPackage: org.example.springcioud.entities
 * @Author:Mr.Yang
 * @CreateTime: 2020-10-16 19:54
 * @Description: json 装饰类
 **/
@Data
@AllArgsConstructor  //全参的构造方法
@NoArgsConstructor //空参的构造方法
public class CommonResult<T> {
    private  Integer code;
    private  String message;
    private  T data;
    public  CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
